<div xmlns:ext="http://www.extjs.com" class="body-wrap"><div class="inheritance res-block"><pre class="res-block-inner"><a href="output/Ext.Toolbar.Item.html" ext:member="" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a>&#13;&nbsp;&nbsp;<img src="resources/elbow-end.gif">Toolbar.TextItem</pre></div><h1>Class <a href="source/Toolbar.html#cls-Ext.Toolbar.TextItem">Ext.Toolbar.TextItem</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr><tr><td class="label">Defined In:</td><td class="hd-info">Toolbar.js</td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/Toolbar.html#cls-Ext.Toolbar.TextItem">Toolbar.TextItem</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info"><a href="output/Ext.Toolbar.Item.html" ext:cls="Ext.Toolbar.Item" ext:member="">Toolbar.Item</a></td></tr></table><div class="description">A simple class that renders text directly into a toolbar.
<pre><code><b>new</b> Ext.Panel({
	tbar : [
		{xtype: <em>'tbtext'</em>, text: <em>'Item 1'</em>} <i>// or simply <em>'Item 1'</em></i>
	]
});</code></pre></div><div class="hr"></div><a id="Ext.Toolbar.TextItem-props"></a><h2>Public Properties</h2><div class="no-members">This class has no public properties.</div><a id="Ext.Toolbar.TextItem-methods"></a><h2>Public Methods</h2><table cellspacing="0" class="member-table"><tbody><tr><th colspan="2" class="sig-header">Method</th><th class="msource-header">Defined By</th></tr><tr class="method-row expandable"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.TextItem-Toolbar.TextItem"></a><b><a href="source/Toolbar.html#cls-Ext.Toolbar.TextItem">Toolbar.TextItem</a></b>(&nbsp;<code>String/Object&nbsp;text</code>&nbsp;)
    <div class="mdesc"><div class="short">Creates a new TextItem</div><div class="long">Creates a new TextItem<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>text</code> : String/Object<div class="sub-desc">A text string, or a config object containing a <tt>text</tt> property</div></li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource">Toolbar.TextItem</td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.Item-destroy"></a><b><a href="source/Toolbar.html#method-Ext.Toolbar.Item-destroy">destroy</a></b>()
    :
                                        void<div class="mdesc"><div class="short">Removes and destroys this item.</div><div class="long">Removes and destroys this item.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Toolbar.Item.html#destroy" ext:member="#destroy" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.Item-disable"></a><b><a href="source/Toolbar.html#method-Ext.Toolbar.Item-disable">disable</a></b>()
    :
                                        void<div class="mdesc"><div class="short">Disables this item.</div><div class="long">Disables this item.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Toolbar.Item.html#disable" ext:member="#disable" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.Item-enable"></a><b><a href="source/Toolbar.html#method-Ext.Toolbar.Item-enable">enable</a></b>()
    :
                                        void<div class="mdesc"><div class="short">Enables this item.</div><div class="long">Enables this item.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Toolbar.Item.html#enable" ext:member="#enable" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.Item-focus"></a><b><a href="source/Toolbar.html#method-Ext.Toolbar.Item-focus">focus</a></b>()
    :
                                        void<div class="mdesc"><div class="short">Try to focus this item</div><div class="long">Try to focus this item<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Toolbar.Item.html#focus" ext:member="#focus" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.Item-getEl"></a><b><a href="source/Toolbar.html#method-Ext.Toolbar.Item-getEl">getEl</a></b>()
    :
                                        HTMLElement<div class="mdesc"><div class="short">Get this item's HTML Element</div><div class="long">Get this item's HTML Element<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>HTMLElement</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Toolbar.Item.html#getEl" ext:member="#getEl" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.Item-hide"></a><b><a href="source/Toolbar.html#method-Ext.Toolbar.Item-hide">hide</a></b>()
    :
                                        void<div class="mdesc"><div class="short">Hides this item.</div><div class="long">Hides this item.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Toolbar.Item.html#hide" ext:member="#hide" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.Item-setVisible"></a><b><a href="source/Toolbar.html#method-Ext.Toolbar.Item-setVisible">setVisible</a></b>(&nbsp;<code>Boolean&nbsp;visible</code>&nbsp;)
    :
                                        void<div class="mdesc"><div class="short">Convenience function for boolean show/hide.</div><div class="long">Convenience function for boolean show/hide.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>visible</code> : Boolean<div class="sub-desc">true to show/false to hide</div></li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Toolbar.Item.html#setVisible" ext:member="#setVisible" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi">&nbsp;</a></td><td class="sig"><a id="Ext.Toolbar.Item-show"></a><b><a href="source/Toolbar.html#method-Ext.Toolbar.Item-show">show</a></b>()
    :
                                        void<div class="mdesc"><div class="short">Shows this item.</div><div class="long">Shows this item.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Toolbar.Item.html#show" ext:member="#show" ext:cls="Ext.Toolbar.Item">Toolbar.Item</a></td></tr></tbody></table><a id="Ext.Toolbar.TextItem-events"></a><h2>Public Events</h2><div class="no-members">This class has no public events.</div></div>